//-----------------------------------------------------------------------
#ifndef SINGLETON_H
#define SINGLETON_H
//-----------------------------------------------------------------------
#include <iostream>
//-----------------------------------------------------------------------
class Singleton
{
protected:
	static Singleton* pkInstance;
	Singleton();

	int iNumber;
public:
	~Singleton();
	static Singleton* getInstance();

	void addNumber(int i);
	int getNumber();
};
//-----------------------------------------------------------------------
#endif //SINGLETON_H
//-----------------------------------------------------------------------
